package main;

import static main.SympleBoard.WHITE;
import static main.SympleBoard.BLACK;

import java.util.Scanner;
import main.Utilities;

public class UserTesting {

	public static void main(String[] args) {
		SympleBoard b = new SympleBoard();
		Scanner sc = new Scanner(System.in);
		String move = "";
		byte player = WHITE;
		
		while (!move.equals("Quit")) {
			switch (player) {
			case WHITE: System.out.print("White to move: ");
			break;
			case BLACK: System.out.print("Black to move: ");
			break;
			}
			move = sc.next();
			if (!Utilities.parseMove(move, player, b)) {
				System.out.println("Invalid move, try again");
			} else {
				player = (byte) (1-player);
			}
		}
	}
}
